package com.xbb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xbb.entity.ReadRoom;
import com.xbb.entity.dto.ReadRoomDto;
import com.xbb.mapper.ReadRoomMapper;
import com.xbb.service.ReadRoomService;
@Service
public class ReadRoomServiceImpl implements ReadRoomService{

	@Autowired
	ReadRoomMapper readRoomMapper;
	@Override
	public List<ReadRoomDto> getReads(ReadRoomDto readRoomDto) {
		return readRoomMapper.getReads(readRoomDto);
	}

	@Override
	public boolean addRead(ReadRoom readRoom) {
		return readRoomMapper.addRead(readRoom);
	}

	@Override
	public boolean updateRead(ReadRoom readRoom) {
		return readRoomMapper.updateRead(readRoom);
	}

	@Override
	public boolean delRead(int rid) {
		return readRoomMapper.delRead(rid);
	}

}
